﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace TheOutfield.UmbExt.UniversalMediaPicker
{
    public class BasicMediaItem
    {
        public string Id { get; set; }
        public string Title { get; set; }
        public string PreviewImageUrl { get; set; }
        public Dictionary<string, string> MetaData { get; set; }

        public BasicMediaItem()
        {
            MetaData = new Dictionary<string, string>();
        }
    }

    public class MediaItem : BasicMediaItem
    {
        public string Icon { get; set; }
        public bool HasChildren { get; set; }
        public bool Selectable { get; set; }

        public MediaItem()
            : base()
        {
            Icon = UmbracoIcons.MediaFile;
            Selectable = true;
        }
    }

    public class UmbracoIcons
    {
        public const string FolderOpen = "folder.gif";
        public const string FolderClosed = "folder_o.gif";
        public const string MediaFile = "mediaFile.gif";
        public const string MediaMovie = "mediaMovie.gif";
        public const string MediaAudio = "mediaMulti.gif";
        public const string MediaPhoto = "mediaPhoto.gif";
    }
}